Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app locale variable issue fixed in Translation Driver #285

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

OoBook
Copy link

@OoBook OoBook commented Sep 12, 2023

I have faced out an issue on translation driver about your $sourceLanguage property, this variable has set on binding Translation::class, so when app::locale variable changes, $sourceLanguage keeps same. Thus, I propose that you can use one of app()->getLocale() or App::getLocale(), because I change this app locale variable on a middleware. Your translation view (translation/languages/translations/index.blade.php) occurs an error because of changing app->locale. At now, sourceLanguage property has assigned in vain. You can remove this assignments after checking it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant